﻿
@{
    ViewData["Title"] = "EditWorkshop";
    Layout = "~/Views/Home/Main.cshtml";
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Demo</title>
    <link href="/layui/css/layui.css" rel="stylesheet">
</head>
<body>
    <h3>车间管理/车间列表/编辑</h3>
    <div class="parent-container">
        <h2>基本信息</h2>
    </div>
    <div class="parent-container">
        <form class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">车间编号：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <input type="text" name="WorkshopNumber" required lay-verify="required" placeholder="请填写车间编号" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">车间名称：</label>
                    <div class="layui-input-block" style="width: 200px;">
                        <input type="text" name="WorkshopName" required lay-verify="required" placeholder="请填写车间名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">车间位置：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <select name="WorkshopLocality" required lay-verify="required" lay-search>
                            <option value="">请选择位置</option>
                            <option value="位置一">位置一</option>
                            <option value="位置二">位置二</option>
                            <option value="位置三">位置三</option>
                            <option value="位置四">位置四</option>
                            <option value="位置五">位置五</option>
                            <option value="位置六">位置六</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">车间负责人：</label>
                    <div class="layui-input-block" style="width: 200px;">
                        <input type="text" name="WorkshopPrincipal" required lay-verify="required" placeholder="请填写车间负责人" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">联系方式：</label>
                    <div class="layui-input-inline" style="width: 200px;">
                        <input type="tel" name="Contact" required lay-verify="required" placeholder="请填写联系方式" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block" style="width: 200px;">
                        <input type="radio" name="State" value="true" title="正常" checked>
                        <input type="radio" name="State" value="false" title="异常">
                    </div>
                </div>
            </div>
            <div class="parent-container">
                <div class="parent-container">
                    <h2>机床信息</h2>
                </div>
            </div>
            <div class="parent-container">
                <div class="layui-btn-container">
                    <button type="button" class="layui-btn layui-btn-primary layui-bg-blue" lay-on="page" style="float:left" id="openPopupBtn">添加</button>
                </div>
                <br />
                <br />
                <br />
                <table class="layui-table" id="deviceTable"></table>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="float:right">
                    <button type="reset" class="layui-btn layui-btn-primary" id="Entry">取消</button>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">编辑</button>
                </div>
            </div>
        </form>
    </div>
    <!-- 在某个元素中嵌入 ApiUrl -->
    <div id="apiUrl" data-url="@Model.ApiUrl"></div>
    <style>
        .parent-container {
            /* 确保父容器有足够的宽度，并且设置了文本对齐方式 */
            width: 80%; /* 或者您想要的任何宽度 */
            margin: 0 auto; /* 如果父容器本身也需要居中，可以使用这个属性（对于本例不是必需的） */
            text-align: center; /* 使子元素（如h3）在父容器内水平居中 */
            /* 其他样式，如背景颜色、内边距等 */
            padding: 20px; /* 内边距 */
        }
    </style>
    <script src="~/js/m_shopmachine/editworkshop.js?n=" + new Date()></script>
    <script type="text/html" id="operationBar">
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">移除</a>
    </script>
</body>
</html>